<template>
	<div class="boss">
		<div class="name">
			试卷名称：{{text.name}}
		</div>
	<!-- 	<div class="introduce">
			试卷介绍:{{}}
		</div -->
		<div class="cons">
      <div style="text-align: left;">
        试题详情遍历
      </div>
      <el-table v-loading="loading" :data="questions" @selection-change="handleSelectionChange">

        <!-- <el-table-column label="${comment}" align="center" prop="id" /> -->
        <el-table-column label="试题遍历" align="left" prop="name" />


      </el-table>
		</div>
	</div>
</template>
<script>
import { getQuestionsByText, getText } from '../../../api/texts/text';
	export default {
		data() {
			return {
        questions:[

        ],
        text:{

        }


			}
		},
		created() {
      console.log(this.$route.query);
      const newId = this.$route.query.id
      getText(newId).then(res=>{
        this.text=res.data
      })
      getQuestionsByText(newId).then(res=>{
        this.questions=res.data
      })
		},
		methods: {
      getAllQuestion(){
      }
		}
	}

</script>

<style>
	.boss {
		background-color: 241, 241, 241;
	}


	.name {
		height: 100rpx;
		text-align: center;
		background-color: white;
	}
	.introduce{
		height: 300rpx;
		background-color: white;
	}
	.cons {
		height: 799rpx;
		text-align: center;
		background-color: white;
	}

</style>

